package com.wzx.ptplatform.service;

import com.wzx.ptplatform.domain.Student;
import com.wzx.ptplatform.utils.PtplatformException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author 紫煦桉
 */
public interface StudentService extends BaseService<Student> {

    /**
     * 查看列表 分页查询 条件查询 findList
     * @param student
     * @param page
     * @param limit
     * @return
     * @throws PtplatformException
     */
    Page<Student> findList(Student student, Integer page, Integer limit) throws PtplatformException;

    /**
     * findAll
     * @return
     * @throws PtplatformException
     */
    List<Student> findAll() throws PtplatformException;

    /**
     * 有兼职信息的学生
     * 查看列表 分页查询 条件查询 findPtList
     *
     * @param student
     * @param page
     * @param limit
     * @return
     * @throws PtplatformException
     */
    Page<Student> findPtList(Student student, Integer page, Integer limit) throws PtplatformException;

    /**
     * login
     *
     * @param student
     * @return
     * @throws PtplatformException
     */
    Student login(Student student) throws PtplatformException;
}
